<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@include file="/WEB-INF/views/inc/taglibs.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<jsp:include page="/WEB-INF/views/inc/meta.jsp"></jsp:include>
<title>Insert title here</title>
</head>
<body>
	<div class="col-sm-offset-1">
		<div class="col-sm-offset-1">
			<form class="form-horizontal" action="${ctx}/user/userInfo.do"
				onsubmit="return validate()" style="margin-top: 50px" method="post">
				<h1 class="col-sm-offset-4">用户注册</h1>
				<input type="hidden" name="method" value="insert">
				<div class="form-group has-feedback" style="display: none;">
					<label for="name" class="col-sm-2 col-sm-offset-1 control-label">用户号：</label>
					<div class="col-sm-4">

						<input name="userid" type="text" class="form-control"
							value=${user.userid==0?'0':user.userid}>

					</div>
				</div>
				<div class="form-group has-feedback">
					<label for="pass" class="col-sm-2 col-sm-offset-1 control-label">用户名：</label>
					<div class="col-sm-4">
						<input name="username" type="text" class="form-control"
							value=${user.userid==0?' ':user.username}>
					</div>
				</div>
				<div class="form-group has-feedback">
					<label for="repass" class="col-sm-2 col-sm-offset-1 control-label">电话：</label>
					<div class="col-sm-4">
						<input name="tel" type="number" class="form-control"
							value=${user.userid==0?' ':user.tel}>
					</div>
				</div>
				<div class="form-group has-feedback">
					<label for="repass" class="col-sm-2 col-sm-offset-1 control-label">用户描述：</label>
					<div class="col-sm-4">
						<input name="status" type="text" class="form-control"
							value=${user.userid==0?' ':user.status}>
					</div>
				</div>
				<div class="form-group has-feedback">
					<label for="repass" class="col-sm-2 col-sm-offset-1 control-label">邮箱：</label>
					<div class="col-sm-4">
						<input name="email" type="email" class="form-control"
							value=${user.userid==0?' ':user.email}>
					</div>
				</div>
				<div class="form-group has-feedback">
					<label for="repass" class="col-sm-2 col-sm-offset-1 control-label">密码：</label>
					<div class="col-sm-4">
						<input name="psw" type="password" class="form-control"
							value=${user.userid==0?' ':user.psw}>
					</div>
				</div>
				<div class="form-group">
					<div class="col-sm-offset-3 col-sm-10"
						style="margin-top: 30px; margin-left: 350px">
						<input type="submit" class="btn btn-primary btn-lg"
							value='${user.userid==0?' 注册':'注册'}'/> <input type="reset"
							class="btn btn-primary btn-lg col-sm-offset-1" value="重置" />
					</div>
				</div>
			</form>
		</div>
	</div>
</body>
</html>